﻿<%@ Page Language="C#" MasterPageFile="~/subscribe/subscribemasterpage.master" AutoEventWireup="true" CodeFile="subscribe.aspx.cs" Inherits="subscribe_subscribe" %>

<%@ Register Src="../controls/usrCompanyBigLogoByServices.ascx" TagName="usrCompanyBigLogoByServices"
    TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>


    <div class="elements_inner_wrapper">
        <div id="divContent" style="display: ">
            <div class="rightcol">
                <div class="content_right">
                    <!-- #Include file="../includes/rcol_services.aspx" -->
                    <div class="seperator">
                    </div>
                    <div class="tip" style="display: none">
                        <div class="head">
                        </div>
                        <div class="body" id="spanPartnerLogo">
                            <h1>
                                Our Merchants</h1>
                            <uc2:usrCompanyBigLogoByServices LogoLimitCount="8" CompanyProviderTypeId="0" ID="usrCompanyLogoByServices1"
                                runat="server" />
                        </div>
                        <div class="foot">
                        </div>
                    </div>
                    <%--<div class="insurers_logos">
                        <h3>OUR PARTNERS</h3>
                        <img src="/images/IFCompanies/Allianz.gif" alt="Allianz" />
                        <img src="/images/IFCompanies/TokioMarine.gif" alt="TokioMarine" />
                        <img src="/images/IFCompanies/MSIG.gif" alt="MSIG" />
                        <img src="/images/IFCompanies/AIG.gif" alt="AIG" />
                        <img src="/images/IFCompanies/NtucIncome.gif" alt="NTUC Income" />
                        <img src="/images/IFCompanies/QBE.gif" alt="QBE" />
                        <img src="/images/IFCompanies/AXA.gif" alt="AXA" />
                    </div>--%>
                </div>
            </div>
            <div id="contentBody">
                <div class="section">
                    <!-- 
                    <div id="tabblue">
                        <ul>
                            <li id="current">
                                <asp:HyperLink ID="hplProfile" NavigateUrl="~/contact/ContactUs.aspx" runat="server">
                                <span>Contact Us</span></asp:HyperLink>
                            </li>
                            <li>
                                <asp:HyperLink ID="HyperLink1" NavigateUrl="~/contact/SetInsuranceReminder.aspx"
                                    runat="server">
                                <span>Set Insurance Reminder</span></asp:HyperLink>
                            </li>
                        </ul>
                    </div>
                    -->
                    <div class="infosmall">
                        <div class="row_new">
                            <h1>
                                Write to us:</h1>
                            <p>
                                <asp:Label runat="server" ID="lblContactAddress" Text="" />
                            </p>
                        </div>
                    </div>
                    <div class="infolarge">
                        <div class="row_new_dotted">
                            <h3>
                                Join the CompareXpress E-Newsletter</h3>
                            <span>
                                <div id="divThankYou" visible="false" runat="server">
                                    <asp:Label Font-Size="Smaller" Font-Bold="true" ForeColor="DarkBlue" runat="server"
                                        Text="" ID="lblThankYou"></asp:Label>
                                    <asp:Label Font-Size="Smaller" Font-Bold="true" ForeColor="red" runat="server" Text=""
                                        ID="lblExist"></asp:Label>
                                </div>
                                <asp:TextBox ID="txtEmail" runat="server" MaxLength="250" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail"
                                    Display="Dynamic" validationErrorCssClass="validationError" ErrorMessage="" ValidationGroup="subscriber"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
                                    validationErrorCssClass="validationError" ErrorMessage="" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    ValidationGroup="subscriber"></asp:RegularExpressionValidator>
                                <%--<asp:ImageButton ID="ibtSubscribe" OnClientClick="LoadValidationErrorCss();" ValidationGroup="subscriber"
                                    runat="server" ImageUrl="~/images/buttons/subscribe.gif" OnClick="btnSubmit_Click"
                                    AlternateText="Subscribe" ToolTip="Subscribe" ImageAlign="AbsMiddle" />--%>
                                <asp:Button runat="server" ID="btnSubscribe" ValidationGroup="subscriber" CssClass="button_w_subscribe"
                                    onmousedown="this.className = 'button_w_subscribe_mousedown';" onmouseup="this.className = 'button_w_subscribe';"
                                    onmouseout="this.className = 'button_w_subscribe';" OnClientClick="LoadValidationErrorCss(); if (Page_ClientValidate('subscriber')){this.removeAttribute('onmouseout'); this.removeAttribute('onmouseup'); this.className='button_w2_processing';}"
                                    OnClick="btnSubscribe_Click" />
                            </span>
                        </div>
                        <div class="row_new">
                            <h3>
                                Send us email</h3>
                            <p>
                                For all general enquiries and feedback, please e-mail us at<br />
                                <asp:HyperLink runat="server" ID="hplSendUsEmail" NavigateUrl="mailto:support@comparexpress.com"
                                    Text="support@comparexpress.com"></asp:HyperLink></p>
                        </div>
                        <div class="row_new">
                            <h3>
                                Compliments/Complaints</h3>
                            <p>
                                Happy or unhappy with our service?
                                <asp:HyperLink runat="server" ID="lblShareExperience" Text="Share your experience here."
                                    NavigateUrl="~/user/userfeedback.aspx"></asp:HyperLink></p>
                        </div>
                        <div class="row_new">
                            <p>
                                Do you want to Unsubscribe?
                                <asp:LinkButton ID="lbtnToUnSubscribe" runat="server" Text="Click Here" OnClick="lbtnToUnSubscribe_Click"></asp:LinkButton>
                        </div>
                        <div class="row_new" id="divUnSubscribe" runat="server" visible="false" style="font-size:12px; border-top: dashed 1px #e9e9e9;
                            background: #f9f9f9; height: 225px">
                            <div style="padding: 15px;">
                                <h3>
                                    Unsubscribe</h3>
                                <div class="row">
                                    <asp:Label ID="lblUnSubscribeMessage" runat="server" ForeColor="DarkBlue"></asp:Label>
                                    <asp:Label ID="lblMessage" ForeColor="Red" runat="server"></asp:Label>
                                </div>
                                <div class="row">
                                    <div class="left" style="width: 110px;">
                                        <label for="Email">
                                            Enter Email</label>
                                    </div>
                                    <div class="field" class="left">
                                        <span class="indicator">
                                            <asp:TextBox ID="txtUnSubscribeEmail" runat="server" MaxLength="80" Width="200px"></asp:TextBox>
                                        </span><span class="indicator">
                                            <asp:RequiredFieldValidator ID="rfvUnSubscribeEmail" runat="server" ControlToValidate="txtUnSubscribeEmail"
                                                Display="Dynamic" ErrorMessage="" Text="" ValidationGroup="unsubscribe" validationErrorCssClass="validationError">
                                            </asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revUnSubscribeEmail" runat="server" ControlToValidate="txtUnSubscribeEmail"
                                                Display="Dynamic" ErrorMessage="" validationErrorCssClass="validationError" Text=""
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="unsubscribe"></asp:RegularExpressionValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                        <br />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="left" style="width: 110px;">
                                        <label for="Security Check">
                                            Security Check</label>
                                    </div>
                                    <div class="field" class="left">
                                        <span class="indicator">
                                            <asp:UpdatePanel runat="server" ID="uplCAPCHA">
                                                <ContentTemplate>
                                                    <div style="display: block; float: left;">
                                                        <asp:Image ID="imgCAPTCHA" runat="server" />
                                                    </div>
                                                    <asp:ImageButton ID="btnNewImage" runat="server" OnClick="btnNewImage_Click" ImageUrl="~/images/icons/refresh.gif"
                                                        ToolTip="Reload" AlternateText="Refresh" />
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                            <asp:UpdateProgress AssociatedUpdatePanelID="uplCAPCHA" DisplayAfter="100" runat="server"
                                                ID="udpCAPTCHA">
                                                <ProgressTemplate>
                                                    <asp:Image ID="imgLoading" ImageUrl="~/images/loading7.gif" runat="server" />
                                                </ProgressTemplate>
                                            </asp:UpdateProgress>
                                        </span>
                                    </div>
                                    <div class="clear">
                                        <br />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="left" style="width: 110px;">
                                        <label for="Security Check">
                                            Text in Box</label>
                                    </div>
                                    <div class="field left">
                                        <asp:UpdatePanel ID="uplSecurityCode" runat="server">
                                            <ContentTemplate>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtSecurityCode" Width="200px" MaxLength="20" runat="server"></asp:TextBox>
                                                </span><span class="indicator">
                                                    <asp:RequiredFieldValidator ID="rfvSecurityCheck" runat="server" ControlToValidate="txtSecurityCode"
                                                        Display="Dynamic" ErrorMessage="" validationErrorCssClass="validationError" Text=""
                                                        ValidationGroup="unsubscribe"></asp:RequiredFieldValidator>
                                                </span>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                    <div class="clear">
                                    </div>
                                    <br />
                                </div>
                                <div class="row">
                                    <div class="left" style="width: 110px;">
                                        &nbsp;</div>
                                    <div class="field left">
                                        <asp:Button runat="server" ID="btnUnSubscribe" ValidationGroup="unsubscribe" CssClass="button_w_unsubscribe"
                                            onmousedown="this.className = 'button_w_unsubscribe_mousedown';" onmouseup="this.className = 'button_w_unsubscribe';"
                                            onmouseout="this.className = 'button_w_unsubscribe';" OnClientClick="LoadValidationErrorCss(); if (Page_ClientValidate('unsubscribe')){this.removeAttribute('onmouseout'); this.removeAttribute('onmouseup'); this.className='button_w2_processing';}"
                                            OnClick="btnUnSubscribe_Click" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
